package com.zahb.qadx.ui.activity;

import android.content.Intent;
import android.view.View;
import android.widget.TextView;

import com.zahb.qadx.R;
import com.zahb.qadx.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;


public class PerfectArchivyActivity extends BaseActivity {
    @BindView(R.id.tvPerfect)
    TextView tvPerfect;
    @BindView(R.id.tvNo)
    TextView tvNo;

    @Override
    protected int getLayout() {
        return R.layout.activity_perfect_archivy;
    }

    @Override
    protected void initViews() {

        mUnbinder = ButterKnife.bind(this);

        String name = getIntent().getStringExtra("name");
        String phone = getIntent().getStringExtra("phone");

        tvPerfect.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(PerfectArchivyActivity.this, EditInfoActivity.class);
                intent.putExtra("name",name);
                intent.putExtra("phone",phone);
                startActivity(intent);
            }
        });

        tvNo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }

    @Override
    protected int getTitleStringRes() {
        return R.string.MyArchives;
    }


}
